package com.hzsxy.bighomework.repository;

import com.hzsxy.bighomework.entity.HomeworkDO;
import com.hzsxy.bighomework.entity.QuestionDO;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by 张晨 on 2018/11/28.
 */
@Repository
public interface HomeworkRepository extends CrudRepository<HomeworkDO,Integer> {

    List<HomeworkDO> findByClassId(String classId);

    List<HomeworkDO> findByQuestionId(int questionId);
}
